# eric7.Templates.TemplateSingleVariableDialog

Module implementing a dialog for entering a single template variable.

### Global Attributes

None

### Classes

TemplateSingleVariableDialog | Class implementing a dialog for entering a single template variable.

### Functions

None

## TemplateSingleVariableDialog

Class implementing a dialog for entering a single template variable.

### Derived from

QDialog, Ui_TemplateSingleVariableDialog

### Class Attributes

None

### Class Methods

None

### Methods

TemplateSingleVariableDialog | Constructor
getVariable | Public method to get the value for the variable.

### Static Methods

None

#### TemplateSingleVariableDialog (Constructor)

TemplateSingleVariableDialog(variable, parent=None)

Constructor

variable (str)
  template variable name
parent (QWidget)
  parent widget of this dialog

#### TemplateSingleVariableDialog.getVariable

getVariable()

Public method to get the value for the variable.

Return:
  value for the template variable

Return Type:
  str

Up